package demo;

import java.util.Random;

class MyThread2 implements Runnable {
    @Override
    public void run() {
        System.out.println("hello");
    }
}
public class Demo2 {
    public static void main(String[] args) {
        Thread thread=new Thread(new MyThread2());
        thread.start();
    }
}
